package com.wx.bootsecurity.service;

import org.springframework.http.HttpRequest;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: aerfazhe
 * @Date: 2021/7/23 10:01
 * @Statement: 结合access自定义权限控制访问
 */
public interface MyService {

    /**
     * 获取对应主体和对应权限
     * @param request
     * @param authentication 获取对应主体权限
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);

}
